
<?php 
include __DIR__ ."../../PHP/db.php";

$e_id = $_POST['e_id'];

$result = array();
$result['status'] = true;

$phql="UPDATE employer SET e_statusid= 3
	   WHERE employer_id={$e_id}"; 

$data =  mysql_query($phql);

if( $data )
{
	$result['status'] = "true";
	$to = getEmail($e_id);
	$employer_name = getName($e_id);

	sendEmail($to,declined($employer_name),"Your registration to flss.ph has been declined");     
}
else
{
	$result['status'] = "false"; 

	
}

echo json_encode($result);
die;

?>